package com.example.spring.boot.rabbitmq.rabbitmq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * <p>
 * RabbitMqProductConfig
 * </p>
 *
 * @author weixin
 * @date 2023/3/28 19:37
 */
@Component
public class RabbitMqProductConfig {

    /**
     *
     * 队列名称
     **/
    public static final String QUEUE_NAME = "sunny_work_queue";

    @Bean
    public Queue simpleQueue() {
        return new Queue(QUEUE_NAME);
    }

}
